package indi.entity;

import java.util.ArrayList;

import indi.service.LiscenceManager;

public class BorrowBookLiscence {
	//唯一编号
	private int id;
	//当前借阅证状态
	private int currentStatues;
	//当前借书记录
	private ArrayList<RecordOfBorro> currentRecords;
	//当前关联学生
	private Student currentStudent;
	
	
	//构造函数
	public BorrowBookLiscence(Student student) {
		super();
		//！先从一开始分配
		this.id = LiscenceManager.getCOUNTOFREGISTE() + 1;
		this.currentStudent = student;
		this.currentRecords = new ArrayList<>();
		student.setBorrowBookLiscence(this);
		this.currentStatues = this.NONE;
	}



	public int getId() {
		return id;
	}

	public ArrayList<RecordOfBorrow> getCurrentRecords() {
		return currentRecords;
	}
	
	public Student getCurrentStudent() {
		return currentStudent;
	}
	
	
	
}
